import {
  handleRequest
} from './index'


//获取-获取分包人成本列表
export function getSubcontractorCost(query) {
  return handleRequest({
    url: '/subcontractor-cost/guide-price/query',
    method: 'post',
    data: query
  })
}


//新增-分包人成本
export function addSubcontractorCost(query) {
  return handleRequest({
    url: '/subcontractor-cost/guide-price',
    method: 'post',
    data: query
  })
}

//修改-分包人成本
export function editSubcontractorCost(query) {
  return handleRequest({
    url: '/subcontractor-cost/guide-price/update',
    method: 'post',
    data: query
  })
}
//删除-分包人成本
export function delSubcontractorCost(query) {
  return handleRequest({
    url: '/subcontractor-cost/guide-price/del',
    method: 'post',
    params: query
  })
}
//查看-分包人成本
export function checkSubcontractorCost(query) {
  return handleRequest({
    url: '/subcontractor-cost/guide-price/query',
    method: 'get',
    params: query
  })
}

// 区域模板
//获取-区域模板列表
export function getSubcontractorCostArea(query) {
  return handleRequest({
    url: '/subcontractor-cost/area/query',
    method: 'post',
    data: query
  })
}


//新增-区域模板
export function addSubcontractorCostArea(query) {
  return handleRequest({
    url: '/subcontractor-cost/area',
    method: 'post',
    data: query
  })
}

//修改-区域模板
export function editSubcontractorCostArea(query) {
  return handleRequest({
    url: '/subcontractor-cost/area/update',
    method: 'post',
    data: query
  })
}
//删除-区域模板
export function delSubcontractorCostArea(query) {
  return handleRequest({
    url: '/subcontractor-cost/area/del',
    method: 'post',
    params: query
  })
}
//查看-区域模板
export function checkSubcontractorCostArea(query) {
  return handleRequest({
    url: '/subcontractor-cost/area/query',
    method: 'get',
    params: query
  })
}


// 左边分类设置
//获取-左边分类设置
export function getClassificationSettings(query) {
  return handleRequest({
    url: '/subcontractor-cost/classification-settings/query',
    method: 'post',
    data: query
  })
}


//新增-左边分类设置
export function addClassificationSettings(query) {
  return handleRequest({
    url: '/subcontractor-cost/classification-settings',
    method: 'post',
    data: query
  })
}

//修改-左边分类设置
export function editClassificationSettings(query) {
  return handleRequest({
    url: '/subcontractor-cost/classification-settings/update',
    method: 'post',
    data: query
  })
}
//删除-左边分类设置
export function delClassificationSettings(query) {
  return handleRequest({
    url: '/subcontractor-cost/classification-settings/del',
    method: 'post',
    params: query
  })
}
//查看-左边分类设置
export function checkClassificationSettings(query) {
  return handleRequest({
    url: '/subcontractor-cost/classification-settings/query',
    method: 'get',
    params: query
  })

}
// 右边表格操作
//获取-右边表格
export function getManagement(query) {
  return handleRequest({
    url: '/subcontractor-cost/data-item-management/query',
    method: 'post',
    data: query
  })
}


//新增-右边表格
export function addManagement(query) {
  return handleRequest({
    url: '/subcontractor-cost/data-item-management',
    method: 'post',
    data: query
  })
}

//修改-右边表格
export function editManagement(query) {
  return handleRequest({
    url: '/subcontractor-cost/data-item-management/update',
    method: 'post',
    data: query
  })
}
//删除-右边表格
export function delManagement(query) {
  return handleRequest({
    url: '/subcontractor-cost/data-item-management/del',
    method: 'post',
    params: query
  })
}
//查看-右边表格
export function checkManagement(query) {
  return handleRequest({
    url: '/subcontractor-cost/data-item-management/query',
    method: 'get',
    params: query
  })
}